package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipMaintainSpareReplace;
import cc.comac.mom.util.ResultBean;

@FeignClient("mom-equipment-mgmt-srv")
public interface EquipMaintainSpareReplaceService {

	@RequestMapping(value = "/p/cs/EquipMaintainSpareReplaceService/selectSomeByFields", method = RequestMethod.POST)
	public ResultBean selectSomeByFields(@RequestBody EquipMaintainSpareReplace equipMaintainSpareReplace);

	
	// 保存按钮
	@RequestMapping(value = "/p/cs/EquipMaintainSpareReplaceService/saveSpareReplace", method = RequestMethod.POST)
	public ResultBean saveSpareReplace(@RequestBody List<EquipMaintainSpareReplace> spareReplaceList);

	// 删除按钮
	@RequestMapping(value = "/p/cs/EquipMaintainSpareReplaceService/deleteSpareReplace", method = RequestMethod.POST)
	public ResultBean deleteSpareReplace(@RequestBody List<EquipMaintainSpareReplace> spareReplaceList);
	// 修改按钮
	@RequestMapping(value = "/p/cs/EquipMaintainSpareReplaceService/updateSpareReplace", method = RequestMethod.POST)
	public ResultBean updateSpareReplace(@RequestBody List<EquipMaintainSpareReplace> spareReplaceList);

	
	// 批量更换确认
	@RequestMapping(value = "/p/cs/EquipMaintainSpareReplaceService/batchReplaceConfirm", method = RequestMethod.POST)
		public ResultBean batchReplaceConfirm(@RequestBody List<EquipMaintainSpareReplace> spareReplaceList);
	
	// 批量需求确认
	@RequestMapping(value = "/p/cs/EquipMaintainSpareReplaceService/batchDemandConfirm", method = RequestMethod.POST)
	public ResultBean batchDemandConfirm (@RequestBody List<EquipMaintainSpareReplace> beanlist);
	
}
